<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/10
  Time: 15:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>
<%----%>
<style>
    .public-bgDate {
        padding: 20px;
    }

    ._blue {
        font-size: 12px !important;
        cursor: pointer;
        padding: 7px 10px;
        border-radius: 3px;
        color: #fff;
        margin: 0px 5px 0px 5px;
    }

    ._red {
        background-color: red;
    }

    ._black {
        background: #000;
    }
    .productList_content_tpl_tr {
        cursor: pointer;
    }

    .productList_content_tpl_tr:hover {
        background-color: #fffbf4;
    }
</style>

<div ng-include="loanBefore" class="includeStyle ">


    <div class="bgSortScroll">


        <%@ include file="./common/search.jsp" %>

        <div class="public-bghint">
            <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
            <i class="iconfont icon-icon-copy-copy"></i>
            <span class="calNum">筛选<span class="result"></span>条结果</span>
        </div>
        <ul class="public-ulList set-listH" ng-show="clientShow.caozuo">
            <li>显示拥有该栏目管理权限的数据；</li>
            <li>拥有权限的管理员会显示对应的操作按钮；</li>
        </ul>
        <div style="height: 20px;"></div>
        <div class="table-scroll">
            <!--tabel 列表-->
            <table class="table public-table PoInput">
                <thead>
                <tr>
                    <td>选择</td>
                    <td>客户编号</td>
                    <td>客户姓名</td>
                    <%--<td>产品</td>--%>
                    <!-- <td>手机号码</td> -->
                    <td>居住区域</td>
                    <td>借款次数</td>
                    <td></td>
                    <td>逾期次数</td>
                    <td></td>
                    <td>坏账单数</td>
                    <td></td>
                    <!-- <td>未还总额</td> -->

                    <!-- <td>已借款总额</td> -->
                    <td>业务员</td>
                    <td>标签</td>
                    <td>创建时间</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody id="personalPublicList">

                </tbody>
                <tfoot class="public-botPage">
                <tr>
                    <td>
                        <!-- 全选反选  -->
                        <input id="checkAllOrNot" type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                    </td>
                    <td colspan="18">
                        <div class="public-botPage-left">
              <span>
                <span>全选</span>
              </span>
                            <div class="se-re">
                                <select class="supportc ng-pristine ng-untouched ng-valid ng-not-empty all_block_list"
                                        ng-model="selectType.default" ng-change="F.selectQuery('supportc','ch_id')">
                                    <option value="-1" selected="selected">批量操作</option>
                                    <option ng-if="HbHr.hr182" value="1" path="client" params="beBlack"
                                            class="">恢复正常
                                    </option><!-- end ngIf: HbHr.hr182 -->
                                </select>
                                <span class="se-po"></span>
                            </div>
                            <script type="text/x-handlebars-template" id="special_fourth_tpl">
                                {{#each .}}
                                {{#IF_EQ key 'addPerson'}}
                                <button class="tabHint addCustomerBtn">
                                    录入客户
                                </button>
                                {{/IF_EQ}}
                                {{/each}}
                            </script>
                        </div>
                        <div class="page-container customer_list-page-container"
                             style="float: right; padding: 15px 0;"></div>
                    </td>
                </tr>
                </tfoot>
            </table>
        </div>


    </div>

    <%@ include file="./common/winBox.jsp" %>


</div>
<script type="x-handlebars-template" id="contract_head_date_tpl">
    <div>
        <select ng-options="a.id as a.atName for a in fenQi" ng-model="param.atId"
                class="ng-pristine ng-untouched ng-valid ng-empty data_select">
            <option value="" class="" selected="selected">分期</option>
            {{#each content}}
            <option label="{{atName}}" value="{{id}}">{{atName}}</option>
            {{/each}}
        </select>
    </div></script>
<script type="x-handlebars-template" id="orderState_content">
    <div class="se-re">
        <select ng-model="data.sId" ng-options="i.id as i.name for i in orderState"
                class="ng-pristine ng-untouched ng-valid ng-empty">
            <option value="" class="" selected="selected">状态</option>
            {{#each content}}
            <option label="{{name}}" value="{{id}}">{{name}}</option>
            {{/each}}
        </select>
    </div>
</script>
<script type="text/x-handlebars-template" id="personalPublicList_tpl">

    {{#if content.content.list}}
    {{#each content.content.list}}

    <tr ng-repeat="i in data1.content.list" ng-click="F.tabClick($event)"
        class="table-tr-hover ">
        <td><input type="checkbox" name="ch_id" value="{{personalId}}"></td>
        <td class="">{{personalNum}}</td>
        <td class="">{{unionName}}</td>

        <td class="">{{name1}}{{name2}}{{name3}}{{address}}</td>
        <td class="">{{ordersum}}</td>
        <td></td>

        <td class="">0</td>
        <td></td>
        <td class="">0</td>
        <td></td>


        <td class="">{{salesman}}</td>

        <td style="color: #e55a5b;">
            {{#if labelName}}
            {{labelName}}
            {{else}}
            正常
            {{/if}}
        </td>
        <%--2018-04-10 16:31:51--%>
        <td class="">{{createTime}}</td>
        <td>


            <div class="se-re sel-blue">
                <select ng-click="F.stopPropagation($event)" class="custlistSelect tabHint client974 ng-not-empty" data-personalid="{{pid}}"
                        data-adminid="{{adminId}}" data-payee="{{unionName}}" data-personalnum="{{personalNum}}" data-roleid="{{role_id}}">
                    <option value="-1" selected="selected">选择操作</option>
                    {{#each ../fourthMenus}}
                    <!-- ngIf: HbHr.hr181 && _routeId!=2 -->
                    <%--<option ng-if="HbHr.hr181 &amp;&amp; _routeId!=2" value="1" path="client"
                            params="editClient" data-type="1"
                            param="id:974,path:client,params:clientList"
                            data-id="{{personalId}}"
                            class="">编辑客户
                    </option><!-- end ngIf: HbHr.hr181 && _routeId!=2 -->
                    <!-- ngIf: HbHr.hr181 && i.role_id==_routeId && _routeId==2 -->

                    <!-- ngIf: HbHr.hr182 -->
                    <option ng-if="HbHr.hr182" value="2" data-type="2" data-id="{{personalId}}"
                            data-payee="{{unionName}}" class="">恢复正常
                    </option>
                    <!-- end ngIf: HbHr.hr182 -->
                    <!-- ngIf: HbHr.hr308 -->
                    <option ng-if="HbHr.hr308" value="3" data-type="2" data-roleid="{{role_id}}" data-id="{{personalId}}" class="">更换业务员</option>
                    <!-- end ngIf: HbHr.hr308 -->
                    <!-- ngIf: HbHr.hr309 -->
                    <option ng-if="HbHr.hr309" value="4" data-personalnum="{{personalNum}}"
                            data-type="2" class="">查看关联订单
                    </option>--%>
                    <!-- end ngIf: HbHr.hr309 -->
                    <!-- ngIf: HbHr.hr309 -->
                    <option value="{{key}}">{{name}}</option>
                    {{/each}}

                </select>

                <span class="se-po-blue"></span>

            </div>


            <button id="{{personalId}}" class="operations_record tabHint btnQuery974">
                操作记录
            </button><!-- end ngIf: HbHr.hr235 -->
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr>
        <td style="position: relative;
    left: 50%;
transform: translateX(-50%);
border: none;
">暂无数据
        </td>

    </tr>                    {{/if}}
</script>
<%--编辑弹窗--%>
<div class="winBox editProduct_window" style="display: none;">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明： 选择已有客户 -->
        <div class="winBox6 ">
            <div class="being">
                <!-- 说明：借款人信息 选择已有客户
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">选择产品</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="public-bgDate" style="padding-left: 20px">
        <span>
<select ng-focus="F.remHight()" id="editSelectType" ng-model="param.admin_id" ng-class="{'error':redErr.admin_id}"
        class="ng-pristine ng-untouched ng-valid ng-not-empty">
                                <option value="">选择类型</option>
    <!-- ngRepeat: item in selesman -->
                                <option ng-repeat="item in selesman" value="1" class=" ">产品名称
                                </option>
    <!-- end ngRepeat: item in selesman -->
                                <option ng-repeat="item in selesman" value="2" class=" ">公司名称
                                </option>
                            </select>
          <input type="text" autocomplete="off" id="editSerachContent"
                 class="D-input-big ng-pristine ng-untouched ng-valid ng-empty search_phone" placeholder="输入搜索内容"
                 ng-model="data.searchKey">

        </span>


                    <button id="search_edit_Btn">
                        <i class="iconfont icon-sousuo icon-sousuo-phone"></i>
                    </button>
                </div>
                <div class="public-bghint">

                    <span class="">筛选<span style="color: red" id="editTotal">0</span>条结果</span>
                </div>
                <div style="height: 20px;"></div>

                <div class="table-scroll" style="max-height: 400px;overflow-y: scroll">
                    <!--tabel 列表-->
                    <table class="table public-table PoInput">
                        <thead>
                        <tr>
                            <td>产品名称</td>
                            <td></td>
                            <td>创建时间</td>

                        </tr>
                        </thead>
                        <tbody id="productList_content">

                        </tbody>
                        <tfoot class="public-botPage">
                        <tr>
                            <%--<td>--%>
                            <%--<!-- 全选反选  -->--%>
                            <%--<input id="" type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">--%>
                            <%--</td>--%>
                            <td colspan="18">
                                <%--<div class="public-botPage-left">--%>
                                <%--<span>--%>
                                <%--<span>全选</span>--%>
                                <%--<button ng-click="queding()" style="    border: none;--%>
                                <%--background-color: #e55a5b;--%>
                                <%--color: white;--%>
                                <%--border-radius: 3px;">--%>
                                <%--确认提交--%>
                                <%--</button>--%>
                                <%--</span>--%>


                                <%--</div>--%>
                                <div class="page-container customer-page-container"
                                     style="float: right; padding: 15px 0;"></div>

                            </td>
                        </tr>
                        </tfoot>

                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="x-handlebars-template" id="productList_content_tpl">
    {{#if content.list}}
    {{#each content.list}}
    <tr data-id="{{id}}" class="productList_content_tpl_tr">
        <td>{{product_name}}</td>
        {{#if d_name2}}
        <td>{{d_name2}}&gt;&nbsp;{{d_name}}</td>
        {{else}}
        <td>{{d_name}}</td>
        {{/if}}
        <td>{{create_time}}</td>
    </tr>
    {{/each}}
    {{else}}


    <tr ng-if="data.content.list.length ==0" class="">
        <td colspan="16">暂时找不到数据</td>
    </tr>

    {{/if}}
</script>
<script type="x-handlebars-template" id="dataList_content_tpl">
    {{#if content.list}}
    {{#each content.list}}
    <tr ng-repeat="i in dataList.list" ng-click="tabClick($event)"
        class="table-tr-hover ">
        <!-- ngIf: i.s_id<13 -->
        <td ng-if="i.s_id<13" class=" ">{{pName}}</td>
        <!-- end ngIf: i.s_id<13 -->
        <td class="">{{found_time}}</td>
        <td class="">{{loan_number}}</td>
        <td class="">{{#IF_EQ repayment_way '4'}}{{at_id}}天{{else}}{{term}}{{/IF_EQ}}</td>
        <td class="">￥{{apply_money}}</td>
        <td class="">{{admin_name}}</td>
        <td class="">
            {{#if dpt_name2}}
            {{dpt_name2}}&gt;
            {{/if}}
            {{#if dpt_name1}}
            {{dpt_name1}}&gt;
            {{/if}}
            {{#if dpt_name}}
            {{dpt_name}}
            {{/if}}
        </td>
        <!-- 状态 -->
        <td class="">
            待提交
        </td>
    </tr>
    {{/each}}
    {{else}}
    <tr ng-if="data.content.list.length ==0" class="">
        <td colspan="16">暂时找不到数据</td>
    </tr>
    {{/if}}
</script>

<script type="text/javascript" src="static/js/page/customermanager/customerlist/customer_blacklist.js?_v=190102162154"></script>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>

<%@ include file="../../common/web_bottom.jsp" %>

